package cn.juque.workflow.inits;

import cn.juque.workflow.service.task.BusinessTaskRender;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>WorkflowInitialization</li>
 * </ul>
 * @date 2023-02-03 08:48:00
 **/
@Slf4j
@Component
public class WorkflowInitialization implements ApplicationRunner {

    @Resource
    private BusinessTaskRender businessTaskRender;

    @Override
    public void run(ApplicationArguments args) {
        this.businessTaskRender.init();
        log.info("初始化完成....");
    }
}
